﻿namespace WechatMp.Web
{
    public class CurrentUser
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 用户账号
        /// </summary>
        public string Account { get; set; } = string.Empty;

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; } = string.Empty;
        /// <summary>
        /// 姓名
        /// </summary>
        public string RealName { get; set; } = string.Empty;

        /// <summary>
        /// 头像
        /// </summary>
        public string HeadIcon { get; set; } = string.Empty;
        /// <summary>
        /// 性别
        /// </summary>
        public int? Gender { get; set; }

        /// <summary>
        /// 账号类型
        /// </summary>
        public UserTypeEnum UserType { get; set; }

        /// <summary>
        /// 角色编码，多个角色，使用“,”分格
        /// </summary>
        public string Role { get; set; } = string.Empty;


        /// <summary>
        /// 手机号码
        /// </summary>
        public string MobilePhone { get; set; } = string.Empty;

        /// <summary>
        /// 可以访问子系统
        /// </summary>
        //public List<UserVisitSystemnTypes> SubSystemList { get; set; }

        ///// <summary>
        ///// 授权访问菜单
        ///// </summary>
        //public List<UserVisitMenus> MenusList { get; set; }
        ///// <summary>
        ///// 授权访问菜单
        ///// </summary>
        //public List<VueRouterModel> MenusRouter { get; set; }
        /// <summary>
        /// 授权使用功能
        /// </summary>
        public List<string> Modules { get; set; } = new List<string>();
        /// <summary>
        /// 用户设置的软件主题
        /// </summary>
        public string UserTheme { get; set; } = string.Empty;

        /// <summary>
        /// token有效时长
        /// </summary>
        public int TokenExpiresIn { get; set; }
    }
}
